package com.pep.mgmt.model.entity;

import java.time.LocalDateTime;

import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.Data;

@Data
@Entity
@EntityListeners(AuditingEntityListener.class)
public class VrfEntity {

    @Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
    private Long id;

    @CreatedDate
    private LocalDateTime creationTime;
    private String vrfName;

    //JPA 默认生成名称为defaultgw的字段,没有下划线
    private String defaultGW;

    private int vlanId;
    private String vlanIpAddr;
}
